-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable unsupported PPL function expressions #478
Disable unsupported PPL function expressions #478
Conversation
Signed-off-by: Tomoyuki Morita <[email protected]>
c07fa54
to
eb36ede
Compare
|
Signed-off-by: Tomoyuki Morita <[email protected]>
@@ -262,7 +262,7 @@ The next samples of PPL queries are currently supported: | |||
- `where` - [See details](https://github.com/opensearch-project/sql/blob/main/docs/user/ppl/cmd/where.rst) | |||
- `fields` - [See details](https://github.com/opensearch-project/sql/blob/main/docs/user/ppl/cmd/fields.rst) | |||
- `head` - [See details](https://github.com/opensearch-project/sql/blob/main/docs/user/ppl/cmd/head.rst) | |||
- `stats` - [See details](https://github.com/opensearch-project/sql/blob/main/docs/user/ppl/cmd/stats.rst) (supports AVG, COUNT, MAX, MIN and SUM aggregation functions) | |||
- `stats` - [See details](https://github.com/opensearch-project/sql/blob/main/docs/user/ppl/cmd/stats.rst) (supports AVG, COUNT, DISTINCT_COUNT, MAX, MIN and SUM aggregation functions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is Distinct count removed by mistake in earlier PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I missed that in the previous PR. (I added supports AVG,...
description)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any test can be shared on PR?
Here are the test cases I covered to verify. Those are picked up from integration tests in SQL plugin.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the change, can we have the tests added https://github.com/opensearch-project/opensearch-spark/tree/main/integ-test/src/test/scala/org/opensearch/flint/spark/ppl as well?
Why we need to remove function expressions, I have to add almost of expressions back for supporting #448. Removing unsupported commands should be satisfied. |
Intention is to make it align with current available syntax. |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/opensearch-spark/backport-0.4 0.4
# Navigate to the new working tree
pushd ../.worktrees/opensearch-spark/backport-0.4
# Create a new branch
git switch --create backport/backport-478-to-0.4
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 98bd79a6ea1d9587d67ae761d417b0db4242a815
# Push it to GitHub
git push --set-upstream origin backport/backport-478-to-0.4
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/opensearch-spark/backport-0.4 Then, create a pull request where the |
Signed-off-by: Tomoyuki Morita <[email protected]> (cherry picked from commit 98bd79a)
Signed-off-by: Tomoyuki Morita <[email protected]> (cherry picked from commit 98bd79a)
Description
3 * 5
(since it is converted to Function).Issues Resolved
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.